import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import hide from '../atom/hide';
import show from '../atom/show';
import { anim, play } from '@feidao/animation';

export default async function a001(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const d = fd.data.d;
	window.clearTimeout(d);
	// 隐藏
	play(anim(fd.data.node, {
	}, {
			top: {
				start: -10,
				end: -50
			}
		}));
	const fail_div = fd.data.node.querySelector('[data-feidao-id="fail_div"]') as HTMLElement;
	const success_div = fd.data.node.querySelector('[data-feidao-id="success_div"]') as HTMLElement;
	hide(fail_div);
	hide(success_div);
}
